<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>边框塌陷</title>
		<style type="text/css">
			div#father{
				border: 1px solid red;
			}
			div#father div{
				height: 100px;
				width: 100px;
				margin: 2px;
				background-color: blueviolet;
				font-size: 30px;
				line-height: 100px;
				text-align: center;
				float: left;
			}
			.clearfix:after{
				content: '';
				display: block;
				clear: both;
			}
		</style>
	</head>
	<body>
		<div id="father" class="clearfix">
			<div>1</div>
			<div>2</div>
			<div>3</div>
			<div>4</div>
			<div>5</div>
			<div>6</div> 
		</div>
		<p style="border: 2px dotted blue;">
			东兴是个大帅哥
		</p>
		<div id="d2" class="clearfix">
			
		</div>
	</body>
</html>
